#ifndef ADDKEY_H
#define ADDKEY_H

#include <QDialog>
#include "akrypt2.h"
#include <libaxel/ak_keys.h>
#include <libaxel/ak_key_manager.h>
#include <libaxel/ak_oid.h>

namespace Ui {
    class AddKeyDialog;
}

class MainWindow;

class AddKeyDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AddKeyDialog(MainWindow *parent, ak_keydb* dbase, QString cypher = "");
	~AddKeyDialog();
private slots:
	void add();
private:
	Ui::AddKeyDialog *ui;
	MainWindow *_parent;
	ak_keydb* _dbase;
	void splitCypher(QString & str, QString &alg, QString &mode);
};

#endif // ADDKEY_H